import { SET_GROUP_LIST, SET_LOGIN_INFO } from '../constants';

export interface GroupListProps {
	businessFlowId?: string;
	createdAt?: string;
	createdBy?: number;
	customizedPolicy?: any[];
	defaultPolicy?: string;
	formTemplates?: string;
	id?: number;
	isChief?: number;
	name?: string;
	org?: string | number;
	updatedAt?: string;
	updatedBy?: string;
	workflowSteps?: any[];
}
export interface LoginProps {
	url: string;
	username: string;
	password: string;
	org: string;
	ticket: string;
	refersh_ticket_time: number;
	agentName: string;
	token: string;
}

export interface SET_LOGIN_INFOAction {
	type: SET_LOGIN_INFO;
	login: LoginProps;
}

export interface SET_GROUP_LISTAction {
	type: SET_GROUP_LIST;
	groupList: GroupListProps[];
}

export enum ActionType {
	SET_LOGIN_INFO = 'SET_LOGIN_INFO',
	SET_GROUP_LIST = 'SET_GROUP_LIST'
}
